﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterALSafa.Master" AutoEventWireup="true"
    CodeBehind="Rpt_Student_Bus.aspx.cs" Inherits="School.Pages.Bus.Rpt_Student_Bus" %>

<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table dir="rtl" style="width: 100%; float: right">
        <tr>
            <td colspan="2" nowrap="nowrap">
                <asp:ScriptManager ID="ScriptManager1" runat="server" ScriptMode="Release">
                </asp:ScriptManager>
            </td>
        </tr>
        <tr>
            <td nowrap="nowrap" colspan="2">
                <table dir="rtl" style="width: 100%; float: right">
                    <tr>
                        <td>
                            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                <ContentTemplate>
                                    <table align="right" dir="rtl" style="width: 100%; float: right">
                                        <tr>
                                            <td nowrap="nowrap">
                                                المجمع
                                            </td>
                                            <td>
                                                <asp:DropDownList ID="ddlCampus" runat="server" AppendDataBoundItems="True" AutoPostBack="True"
                                                    DataTextField="Name" DataValueField="Id" OnTextChanged="ddlCampus_TextChanged"
                                                    Width="150px">
                                                    <asp:ListItem Value="0">اختيار</asp:ListItem>
                                                </asp:DropDownList>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="ddlCampus"
                                                    Display="Dynamic" ErrorMessage="*" ForeColor="Red" InitialValue="0" ValidationGroup="st">*</asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td nowrap="nowrap">
                                                الشهاده
                                            </td>
                                            <td>
                                                <asp:DropDownList ID="ddlCertificate" runat="server" AppendDataBoundItems="True"
                                                    AutoPostBack="True" DataTextField="Name" DataValueField="Id" Width="150px" OnSelectedIndexChanged="ddlCertificate_SelectedIndexChanged"
                                                    TabIndex="1">
                                                    <asp:ListItem Value="0">اختيار</asp:ListItem>
                                                </asp:DropDownList>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="ddlCertificate"
                                                    Display="Dynamic" ErrorMessage="*" ForeColor="Red" InitialValue="0" ValidationGroup="st">*</asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td nowrap="nowrap">
                                                المرحلة&nbsp;
                                            </td>
                                            <td>
                                                <asp:DropDownList ID="ddlStadge" runat="server" AppendDataBoundItems="True" AutoPostBack="True"
                                                    DataTextField="Name" DataValueField="Id" OnSelectedIndexChanged="ddlStadge_SelectedIndexChanged"
                                                    Width="150px" TabIndex="2">
                                                    <asp:ListItem Value="0">اختيار</asp:ListItem>
                                                </asp:DropDownList>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="ddlStadge"
                                                    Display="Dynamic" ErrorMessage="*" ForeColor="Red" InitialValue="0" ValidationGroup="st">*</asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td nowrap="nowrap">
                                                الصف
                                            </td>
                                            <td>
                                                <asp:DropDownList ID="ddlGrade" runat="server" AppendDataBoundItems="True" AutoPostBack="True"
                                                    DataTextField="Name" DataValueField="Id" OnSelectedIndexChanged="ddlGrade_SelectedIndexChanged"
                                                    Width="150px" TabIndex="3">
                                                    <asp:ListItem Value="0">اختيار</asp:ListItem>
                                                </asp:DropDownList>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="ddlGrade"
                                                    Display="Dynamic" ErrorMessage="*" ForeColor="Red" InitialValue="0" ValidationGroup="st">*</asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td nowrap="nowrap" style="width: 1px">
                                                الطالب
                                            </td>
                                            <td>
                                                <asp:DropDownList ID="ddlstudent" runat="server" AppendDataBoundItems="True" DataTextField="FullName"
                                                    DataValueField="Id" Width="150px" TabIndex="4" 
                                                    onselectedindexchanged="ddlstudent_SelectedIndexChanged" 
                                                    AutoPostBack="True">
                                                    <asp:ListItem Value="0">اختيار</asp:ListItem>
                                                </asp:DropDownList>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="ddlstudent"
                                                    Display="Dynamic" ErrorMessage="*" ForeColor="Red" InitialValue="0" ValidationGroup="st">*</asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                    </table>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td nowrap="nowrap" style="width: 41px">
            </td>
            <td nowrap="nowrap" align="right">
                <rsweb:ReportViewer ID="rvstudent_bus" runat="server" Font-Names="Verdana" Font-Size="8pt"
                    Height="" InteractiveDeviceInfos="(Collection)" SizeToReportContent="True" WaitMessageFont-Names="Verdana"
                    WaitMessageFont-Size="14pt" Width="100%">
                    <LocalReport ReportPath="Bus\Report\StudentBus.rdlc">
                        <datasources>
                            <rsweb:ReportDataSource DataSourceId="OdsGo" Name="Go" />
                            <rsweb:ReportDataSource DataSourceId="OdsBack" Name="Back" />
                        </datasources>
                    </LocalReport>
                </rsweb:ReportViewer>
                <asp:ObjectDataSource ID="OdsBack" runat="server" 
                    SelectMethod="GetbusBusBackSid" TypeName="School.Entities.Bus_Repository">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="ddlstudent" Name="Sid" 
                            PropertyName="SelectedValue" Type="Int32" />
                    </SelectParameters>
                </asp:ObjectDataSource>
                <asp:ObjectDataSource ID="OdsGo" runat="server" SelectMethod="GetbusBusGoSid" 
                    TypeName="School.Entities.Bus_Repository">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="ddlstudent" Name="Sid" 
                            PropertyName="SelectedValue" Type="Int32" />
                    </SelectParameters>
                </asp:ObjectDataSource>
            </td>
        </tr>
    </table>
</asp:Content>
